<table class="layui-table text-center" lay-size="sm">
    <thead>
        <tr>
            <th>快递名称</th>
            <th><div class="text-left">快递编号</div></th>
            <th>官网</th>
            <th>联系人</th>
            <th>联系电话</th>
            <th>提货时间</th>
            <th>网点地址</th>
            <th>状态</th>
            <th>排序</th>
            <th>备注</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
        {volist name="list" id="item"}
            <tr>
                <td>{$item.logistics_name}</td>
                <td class="copy-text text-left">{$item.track_code}</td>
                <td>{if !empty($item.site)}<a target="_blank" href="{$item.site}"><i class="layui-icon layui-icon-link"></i></a>{/if}</td>
                <td>{$item.contacts}</td>
                <td>{$item.phone}</td>
                <td>{$item.take_time}</td>
                <td>{$item.address}</td>
                <td>
                    {php}$status = $item['status'];{/php}
                    <a href="{:url('save',['express_id'=>$item['express_id'], 'status'=>abs(1-$status)])}" class="ajax-get" msg="0" style="font-size: 16px;">
                        {$status?'<i class="fa fa-unlock"></i>':'<i class="fa fa-lock text-red"></i>'}</a>
                </td>
                <td>{$item.sort}</td>
                <td class="text-left">{$item.remark}</td>
                <td><a href="{:url('add',['express_id'=>$item['express_id']])}" class="layui-btn layui-btn-xs layui-btn-normal ajax-form" title="快递管理">编辑</a>
                    <a href="{:url('delete',['ids'=>$item['express_id']])}" title="删除" confirm="1" class="layui-btn layui-btn-xs layui-btn-danger ajax-get">删除</a> </td>
            </tr>
        {/volist}
        {empty name="list"}
        <tr>
            <td colspan="13">没有数据</td>
        </tr>
        {/empty}
    </tbody>
</table>
